package resource;

import java.io.Serializable;
import java.util.ArrayList;

public class UserProfile implements Serializable{
	String gender;
	int age;
	String occupation;
	ArrayList<String> interests;
	ArrayList<String> visitedArtifacts;
	
	public UserProfile(){
		interests = new ArrayList<String>();
		visitedArtifacts = new ArrayList<String>();
	}
	
	public String getOccupation() {
		return occupation;
	}
	public void setOccupation(String occupation) {
		this.occupation = occupation;
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	
	public void addInterest(String interest){
		interests.add(interest);
	}
	
	@SuppressWarnings("unchecked")
	public ArrayList<String> getInterests(){
		return (ArrayList<String>) interests.clone();
	}
	
	public void addVisitedArtifact(String artifact){
		visitedArtifacts.add(artifact);
	}
	
	@SuppressWarnings("unchecked")
	public ArrayList<String> getVisitedArtifact(){
		return (ArrayList<String>) visitedArtifacts.clone();
	}
	
	@Override
	public String toString() {
		return "UserProfile: " + gender + age + occupation;
	}
}
